package com.shine.minepressure.ui.adapter;

import androidx.recyclerview.widget.RecyclerView;

import com.shine.minepressure.R;
import com.shine.minepressure.bean.CertificateBean;
import com.shine.minepressure.bean.SensorRtAlarmBean;
import com.shine.minepressure.bean.SensorRtFaultBean;

import cn.bingoogolapple.baseadapter.BGARecyclerViewAdapter;
import cn.bingoogolapple.baseadapter.BGAViewHolderHelper;

public class RealTimeFragment3Adapter extends BGARecyclerViewAdapter<SensorRtFaultBean.RowsDTO> {

    public RealTimeFragment3Adapter(RecyclerView recyclerView) {
        super(recyclerView, R.layout.item_real_time_child3_adapter);
    }

    @Override
    protected void fillData(BGAViewHolderHelper helper, int position, SensorRtFaultBean.RowsDTO model) {
        helper.setText(R.id.sensorId, model.getSensorId())
                .setText(R.id.SensorInstallPosition, model.getSensorInstallPosition())
                .setText(R.id.SensorTypeName, model.getSensorTypeName())
                .setText(R.id.SensorWarringTime, model.getSensorWarringTime())
        ;
    }
}